//
//  WmcTagColorSelectCell.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/3/17.
//

import UIKit

class WmcTagColorSelectCell: WmcBaseCollectionCell {

    override func makeUI() {
        addSubview(colorView)
        colorView.snp.makeConstraints { make in
            make.center.equalToSuperview()
            make.size.equalTo(self.snp.height)
        }
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        let height = frame.height / transform.yp.scaleX
        colorView.layer.cornerRadius = height / 2
        colorView.layer.masksToBounds = true
    }
    
    lazy var colorView: UIView = {
        let view = UIView()
        view.layer.borderColor = UIColor.white.cgColor
        view.layer.borderWidth = 1
        return view
    }()
}
